﻿using System.Data;
using AccessControl.Common;
using AccessControl.DataAcess;


namespace AccessControl.Business
{
	public class WorkflowBusiness
	{
        public static AccessControlDS.tblWorkflowDataTable SelectAll()
        {
            var tbl = new AccessControlDS.tblWorkflowDataTable();
            return WorkflowAccess.SelectAll();
		}

        public static DataTable SelectFull()
        {
            var tbl = new DataTable();
            return WorkflowAccess.SelectFull();
        }

        public static AccessControlDS.tblWorkflowDataTable SelectAllEnabled( AccessControlDS.tblWorkflowDataTable tblWorkflowTable)
		{
			return WorkflowAccess.SelectByFilter("Enabled = 1",  tblWorkflowTable);
		}

        public static AccessControlDS.tblWorkflowDataTable SelectByFilter(string filter)
        {
            return WorkflowAccess.SelectByFilter(filter);
        }

        public static void Insert(AccessControlDS.tblWorkflowRow row)
		{
			WorkflowAccess.Insert(row);
		}

        public static void Update(AccessControlDS.tblWorkflowRow row)
		{
			WorkflowAccess.Update(row);
		}

        public static void Delete(AccessControlDS.tblWorkflowRow row)
		{
			WorkflowAccess.Delete(row);
		}

	}
}
